// src/router.js
import { createRouter, createWebHistory } from 'vue-router'
const routes = [
  {
    path: "",
    name: "",
    //重定向
    redirect: "/index",
  },
  // 首页
  {
    path: "/index",
    name: "index",
    component: () => import("@/views/Index.vue"),
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router